package com.dingqb.androidproject;

import android.app.Application;
import android.os.StrictMode;

/**
 * Created by dingqb on 2018/3/30.
 */

public class MyApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        // 严格模式：虚拟机策略、线程策略
        StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectActivityLeaks().detectAll().penaltyLog().build());
        StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().penaltyDialog().penaltyLog().build());

    }
}
